import json
with open('test.ini','r')as f:
    with open('json.json', 'w') as f1:
        for line in f:
            res=json.dumps(line)
            resf1=json.loads(res)
            f1.write(resf1)


# 做得不错
